package com.estar.integaration.DS;

import java.util.Iterator;

/**
 * Author: YJL
 * Date: 2021/12/29 11:29
 **/
public interface VertexInterface {

  public String getData();

  public void visit();

  public void unVisit();

  public boolean isVisited();

  public boolean connect(VertexInterface endVertex,double edgeWeight);

  public boolean connect(VertexInterface endVertex);

  public Iterator<VertexInterface> getNeighborIterator();

  public boolean hasNeighbor();

  public VertexInterface getUnvisitedNeighbor();

  public void setPredecessor(VertexInterface predecessor);

  public VertexInterface getPredecessor();

  public boolean equals(Object other);

}
